package IViews;

import java.awt.Color;
import java.awt.Font;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class IToolbar extends JLabel {
	
	private final static int maxToolbars = 3;
	
	public IToolbar(String pText, int width, int number){
		super();
		
		number = number % maxToolbars;
		
		this.setBounds(0, 0, width, 43);
		this.setIcon(IViewConsts.loadImageAndResize("toolbar_"+(number)+".png", width, 43));
		
		
		Font f = new Font(Font.SANS_SERIF, Font.BOLD, 24);
		JLabel t = new JLabel(pText);
		t.setFont(f);
		t.setHorizontalAlignment(SwingConstants.CENTER);
		if(number == 2){
			t.setForeground(Color.GRAY);
		}else{
			t.setForeground(Color.WHITE);
		}
		t.setBounds(0, 0, width, 43);
		this.add(t,0);
	}
	
}
